package com.googlecode.yoohoo.xmppcore.stanza;

public class StanzaIdKey {
	protected String id;

	public StanzaIdKey(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}
	
	@Override
	public int hashCode() {
		return id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj.getClass() == this.getClass()) {
			StanzaIdKey other = (StanzaIdKey)obj;
			
			return other.getId().equals(this.getId());
		}

		return false;
	}
}
